function btnDel(id) {
    if (confirm("是否删除？")) {
        console.log("t");

        axios.delete(`http://localhost:5000/teacher/${id}`).then((res) => {
            let data = res.data
            console.log(data.code);
            

            if (data.code === 1000) {
                let tr = document.querySelector(`.blog${id}`)
                tr.remove()
                alert(`${data.msg}`)
            } else {
                console.log("f");
                alert(`${data.msg}`)

            }
        })

    }
}